package com.xdb.sqlparser.ast.statement;

import java.util.ArrayList;
import java.util.List;

import com.xdb.sqlparser.ast.SQLName;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class SQLColumnReference extends AbstractSQLConstraintImpl implements SQLColumnConstraint {

	private SQLName table;
	private List<SQLName> columns = new ArrayList<SQLName>();

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, this.getName());
		}
		visitor.endVisit(this);
	}

	public SQLName getTable() {
		return table;
	}

	public void setTable(SQLName table) {
		this.table = table;
	}

	public List<SQLName> getColumns() {
		return columns;
	}

	public void setColumns(List<SQLName> columns) {
		this.columns = columns;
	}

}
